package com.stellar.circle.basic.service.impl;

import com.stellar.circle.basic.dao.SIdleDao;
import com.stellar.circle.basic.entity.SIdle;
import com.stellar.circle.basic.service.SIdleService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

/**
 * 闲置物品交易表(SIdle)服务实现
 *
 * @author Jqchan
 * @since 2025-06-07 20:13:37
 */
@Service
public class SIdleServiceImpl implements SIdleService {
    
    @Resource
    private SIdleDao sIdleDao;

    @Override
    public SIdle queryById(Long id) {
        return sIdleDao.queryById(id);
    }

    @Override
    public SIdle queryByCondition(SIdle condition) {
        return sIdleDao.queryByCondition(condition);
    }

    @Override
    public List<SIdle> queryAllByCondition(SIdle condition) {
        return sIdleDao.queryAllByCondition(condition);
    }

    @Override
    public List<SIdle> page(SIdle condition, int page, int pageSize) {
        return sIdleDao.page(condition, page, pageSize);
    }

    @Override
    public int insert(SIdle entity) {
        return sIdleDao.insert(entity);
    }

    @Override
    public int update(SIdle entity) {
        return sIdleDao.update(entity);
    }

    @Override
    public int deleteById(Long id) {
        return sIdleDao.deleteById(id);
    }

    @Override
    public Long count(SIdle condition) {
        return sIdleDao.count(condition);
    }
}
